<include file="public+header" />


	<div class="title"><lang package='comment'>评论列表</lang> ( <a href="{:G::U('comment/index?type=taotao')}"><lang package='comment'>心情评论</lang></a> | <a href="{:G::U('comment/index?type=blog')}"><lang package='comment'>日志评论</lang></a> | <a href="{:G::U('comment/index?type=upload')}"><lang package='comment'>附件评论</lang></a> | <a href="{:G::U('comment/build')}"><lang package='comment'>评论整理</lang></a> )</div>


	<div class="toolbar">

		<div class="operate left" >
			<input type="button" name="edit" value="<lang>编辑</lang>" onclick="edit()" class="edit button">
			<input type="button" name="delete" value="<lang>删除</lang>" onclick="foreverdel()" class="delete button">
			<input type="button" name="show" value="<lang package='blog'>审核</lang>" onclick="isshow();" class="isshow button">
			<input type="button" name="unIsshow" value="<lang package='blog'>屏蔽</lang>" onclick="unIsshow();" class="unIsshow button">
		</div>

		<div class="right search_form">
		<form method='get' action="{:G::U( 'comment/index' )}">
			<div class="left">
				<input type="hidden" name="c" value="{:MODULE_NAME}"/>
				<input type="hidden" name="a" value="{:ACTION_NAME}"/>
				<input type="text" name="comment_name" title="<lang package='comment'>评论名</lang>" class="field" >
				<input type="submit" id="" value="<lang>查询</lang>" onclick="" class="search button">
			</div>
		</form>
	</div>
	</div>


	<span class="clear"></span>


	<div id="content" class="content">
		<table class="data full" id="checkList">
		<thead>
		<tr>
			<th><input type="checkbox" onclick="checkAll('checkList')"></th>
			<th><a href="javascript:sortBy('comment_id','{$sSortByUrl}')" {if G+getGpc('order_','G')=='comment_id' && G+getGpc('sort_','G')=='asc'}class="order_desc"{/if}{if G+getGpc('order_','G')=='comment_id' && G+getGpc('sort_','G')=='desc'}class="order_asc"{/if} title="<lang package='comment'>按照编号</lang>{$sSortByDescription}<lang>排列</lang> "><lang package='comment'>编号</lang></a></th>
			<th>&nbsp;</th>
			<th>&nbsp;</th>
			<th><a href="javascript:sortBy('comment_name','{$sSortByUrl}')" {if G+getGpc('order_','G')=='comment_name' && G+getGpc('sort_','G')=='asc'}class="order_desc"{/if}{if G+getGpc('order_','G')=='comment_name' && G+getGpc('sort_','G')=='desc'}class="order_asc"{/if} title="<lang package='comment'>按照评论名字</lang>{$sSortByDescription}<lang>排列</lang> "><lang package='comment'>评论名字</lang></a></th>
			<th><a href="javascript:sortBy('comment_content','{$sSortByUrl}')" {if G+getGpc('order_','G')=='comment_content' && G+getGpc('sort_','G')=='asc'}class="order_desc"{/if}{if G+getGpc('order_','G')=='comment_content' && G+getGpc('sort_','G')=='desc'}class="order_asc"{/if} title="<lang package='comment'>按照评论内容</lang>{$sSortByDescription}<lang>排列</lang> "><lang package='comment'>评论内容</lang></a></th>
			<th><a href="javascript:sortBy('comment_relationtype','{$sSortByUrl}')" {if G+getGpc('order_','G')=='comment_relationtype' && G+getGpc('sort_','G')=='asc'}class="order_desc"{/if}{if G+getGpc('order_','G')=='comment_relationtype' && G+getGpc('sort_','G')=='desc'}class="order_asc"{/if} title="<lang package='comment'>按照关联类型</lang>{$sSortByDescription}<lang>排列</lang> "><lang package='comment'>关联类型</lang></a></th>
			<th><a href="javascript:sortBy('comment_relationvalue','{$sSortByUrl}')" {if G+getGpc('order_','G')=='comment_relationvalue' && G+getGpc('sort_','G')=='asc'}class="order_desc"{/if}{if G+getGpc('order_','G')=='comment_relationvalue' && G+getGpc('sort_','G')=='desc'}class="order_asc"{/if} title="<lang package='comment'>按照关联值</lang>{$sSortByDescription}<lang>排列</lang> "><lang package='comment'>关联值</lang></a></th>
			<th><a href="javascript:sortBy('create_dateline','{$sSortByUrl}')" {if G+getGpc('order_','G')=='create_dateline' && G+getGpc('sort_','G')=='asc'}class="order_desc"{/if}{if G+getGpc('order_','G')=='create_dateline' && G+getGpc('sort_','G')=='desc'}class="order_asc"{/if} title="<lang package='comment'>按照创建时间</lang>{$sSortByDescription}<lang>排列</lang> "><lang package='comment'>创建时间</lang></a></th>
			<th><a href="javascript:sortBy('comment_isshow','{$sSortByUrl}')" {if G+getGpc('order_','G')=='comment_isshow' && G+getGpc('sort_','G')=='asc'}class="order_desc"{/if}{if G+getGpc('order_','G')=='comment_isshow' && G+getGpc('sort_','G')=='desc'}class="order_asc"{/if} title="<lang package='node'>按照状态</lang>{$sSortByDescription}<lang>排列</lang> "><lang package='node'>状态</lang></a></th>
			<th><lang>操作</lang></th>
			</tr>
			</thead>
			<tbody>
			<foreach for=oList>
			<tr>
			<td><input type="checkbox" name="key" value="{$value:comment_id}"></td>
			<td>{$value:comment_id}</td>
			<td class="comment-icon"><a href="javascript:edit('{$value:comment_id}')" title="<lang>编辑</lang> 《{$value:comment_name}》" >
					<img src="{if $value['user_id']>0}{$TheController:get_avatar_url('small',$value->user_id )}{d*else}{$TheController:get_gravatar_com( $value->comment_email,48 )}{/if}"	alt="{$value:comment_name}" title="{$value:comment_name}" />
				</a>
			<td>
			<td><if condition="$value:comment_ismobile eq 1"><img src="{:__TMPLPUB__}/Images/mobile.gif" title="<lang package='comment'>手机评论</lang>"/></if>{$value:comment_name}<br/>
				<div class="row-actions">
					<span class='edit'><a href="javascript:edit('{$value:comment_id}')" title="<lang>编辑</lang> 《{$value:comment_name}》"><lang>编辑</lang></a>|</span>
					<span class='delete'><a href="javascript:foreverdel('{$value:comment_id}');" title="<lang>删除</lang> 《{$value:comment_name}》">删除</a>|</span>
					<span class='edit'>{if $value:comment_isshow==1}<a href="javascript:hide('{$value:comment_id}')" title="<lang>屏蔽</lang> 《{$value:comment_name}》" ><lang>屏蔽</lang>{d*else}<a href="javascript:show('{$value:comment_id}')" title="<lang>审核</lang> 《{$value:comment_name}》" ><lang>审核</lang></a>{/if}</span>
				</div>
			</td>
			<td>{$value:comment_content|stripslashes|String+subString=0,30}</td>
			<td>{$value:comment_relationtype}</td>
			<td>{$value:comment_relationvalue}</td>
			<td>{$value:create_dateline|date='Y-m-d',**}</td>
			<td><img src="{:__TMPLPUB__}/Images/<if condition="$value:comment_isshow eq 1" >yes<else/>no</if>.gif"/></td>
			<td>{if $value:comment_isshow==1}<a href="javascript:hide('{$value:comment_id}')"><lang>屏蔽</lang></a>{d*else}<a href="javascript:show('{$value:comment_id}')"><lang>审核</lang></a>{/if}&nbsp;<a href="javascript:edit('{$value:comment_id}')"><lang>编辑</lang></a></td>
			</tr>
			</foreach>
		</tbody>
		</table>


		<div class="toolbar">

			<div class="operate" >
				<input type="button" name="edit" value="<lang>编辑</lang>" onclick="edit()" class="edit button">
				<input type="button" name="delete" value="<lang>删除</lang>" onclick="foreverdel()" class="delete button">
				<input type="button" name="isshow" value="<lang package='blog'>审核</lang>" onclick="isshow();" class="isshow button">
				<input type="button" name="unIsshow" value="<lang package='blog'>屏蔽</lang>" onclick="unIsshow();" class="unIsshow button">
			</div>
		</div>


		{$sPageNavbar}

	</div>


<include file="public+footer">